package me.chinaq.fastweb.service.impl;

import me.chinaq.fastweb.bean.User;
import me.chinaq.fastweb.dao.UserDao;
import me.chinaq.fastweb.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by shaoqi on 7/7/2017.
 */
@Service
public class UserServiceImpl extends BaseService<User> implements UserService {

	@Resource
	private UserDao userMapper;

	@Override
	public void updateTest(User user) {
		user = new User();
		user.setSex(2);
		user.setId(1);
		update(user);
		if (1 == 1) {
			throw new RuntimeException();
		}
	}
}
